<script type="text/javascript" src="<?php echo base_url() . APPPATH ?>themes/admin/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo base_url() . APPPATH ?>themes/admin/js/ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">
  var CKEDITOR = window.parent.CKEDITOR;
  var instance;
  function update_instance()  {
    instance = CKEDITOR.currentInstance;
  }    
  function windowClose(){
    CKEDITOR.dialog.getCurrent().hide();
  }
  function insertHTML(html){
    window.parent.instance.insertHtml(html);
  } 
  (function($) {
    $(function(){
      tankCMS.init_ckeditor = function(){
        $('#feedback_content').ckeditor({
          toolbar: [
            ['Maximize'],['tankCMSimages', 'tankCMSfiles'],
            ['Cut','Copy','Paste','PasteFromWord'],['Undo','Redo','-','Find','Replace'],
            ['Link','Unlink'],['Table','HorizontalRule','SpecialChar'],
            ['Bold','Italic','StrikeThrough'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl'],
            ['Format', 'FontSize', 'Subscript','Superscript', 'NumberedList','BulletedList',
              'Outdent','Indent','Blockquote'],['ShowBlocks', 'RemoveFormat', 'Source']
          ],
          extraPlugins: 'tankCMSimages,tankCMSfiles',
          width: '99%', height: 400, dialog_backgroundCoverColor: '#000',removePlugins: 'elementspath',
          defaultLanguage: 'en', language: 'en'
        });
      };
      tankCMS.init_ckeditor();
    });
  })(jQuery);
</script>